#!/usr/bin/env bash

OpenCV_VERSION=3.4.3
OpenCV_VERSION_MAJOR=3
OpenCV_VERSION_MINOR=4
OpenCV_VERSION_PATCH=3
OpenCV_VERSION_STATUS=

_contains() {
  [ `echo $1 | grep -c "$2"` -gt 0 ]
}

if _contains "/usr/local/include;/usr/local/include/opencv" "/ros/"; then
  ROS_VERSION=$(rosversion -d)
  OpenCV_VERSION=ros-$ROS_VERSION
fi
